<?php if (!defined('THINK_PATH')) exit();?><div class="pageContent">	
    <form method="post" action="/tuyouApp/buy/edit?callbackType=closeCurrent" class="pageForm required-validate" onsubmit="return validateCallback(this, dialogAjaxDone)">
        <input type="hidden"  id='hidden'  name='id' value="<?php echo ($buyInfo["id"]); ?>"/>
        <div class="pageFormContent" layoutH="58">
            <div class="unit">
                <label>求购标题：</label>
                <input type="text" name="title" size="15"  value="<?php echo ($buyInfo["title"]); ?>" class='required' />
            </div>
            <div class="unit">
                <label>求购内容：</label>
                <textarea name="content" cols="12" rows="4"><?php echo ($buyInfo["content"]); ?></textarea>
            </div>
            
            <div class="unit" id='control'>
                <label>地址：</label>
                <input type="text"  name="publisherAddr" size="15" value="<?php echo ($buyInfo["publisheraddr"]); ?>" class='required'/>
            </div>           
            <div class="unit">
                <label>求购地区：</label>
                <select class="" name="regionId" style="width: 101px;">
                    <?php if(is_array($region)): foreach($region as $key=>$list): ?><option value="<?php echo ($list["id"]); ?>" <?php if($list['id'] == $buyInfo['regionid']): ?>selected<?php endif; ?>><?php echo ($list["name"]); ?></option><?php endforeach; endif; ?>
                </select>
            </div>
            <?php if(($_SESSION['type']) > "1"): if(($buyInfo['id']) != ""): ?><div class="unit">
                        <label style="width: 108px;">是否置顶：</label>
                        <label style="width: 38px;"><input type="radio" name="top" value="1" />是</label>
                        <label><input type="radio" name="top" value='0' checked/>否</label> 
                    </div><?php endif; endif; ?>
        </div>
        <div class="formBar">
            <ul>
                <li><div class="buttonActive"><div class="buttonContent"><button type="submit">提交</button></div></div></li>
                <li><div class="button"><div class="buttonContent"><button type="button" class="close">取消</button></div></div></li>
            </ul>
        </div>
    </form>	
</div>